package c.j.a.d.b.j;

import android.util.SparseArray;
import com.ss.android.socialbase.downloader.g.c;

/* compiled from: AbsDownloadEngine */
public class b implements Runnable {
    public final /* synthetic */ SparseArray a;
    public final /* synthetic */ c b;
    public final /* synthetic */ SparseArray c;

    public b(c cVar, SparseArray sparseArray, c cVar2, SparseArray sparseArray2) {
        this.a = sparseArray;
        this.b = cVar2;
        this.c = sparseArray2;
    }

    public void run() {
        SparseArray sparseArray = this.a;
        if (sparseArray != null) {
            synchronized (sparseArray) {
                for (int i = 0; i < this.a.size(); i++) {
                    c.j.a.d.b.d.b bVar = (c.j.a.d.b.d.b) this.a.get(this.a.keyAt(i));
                    if (bVar != null) {
                        bVar.H(this.b);
                    }
                }
            }
        }
        c cVar = this.b;
        if (cVar != null && cVar.J()) {
            sparseArray = this.c;
            if (sparseArray != null) {
                synchronized (sparseArray) {
                    for (int i2 = 0; i2 < this.c.size(); i2++) {
                        c.j.a.d.b.d.b bVar2 = (c.j.a.d.b.d.b) this.c.get(this.c.keyAt(i2));
                        if (bVar2 != null) {
                            bVar2.H(this.b);
                        }
                    }
                }
            }
        }
    }
}
